package com.bite.springbook.Service;

import com.bite.springbook.Model.UserInfo;
import com.bite.springbook.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserInfoMapper userInfoMapper;

    public UserInfo getUserByName(String name){
        return userInfoMapper.queryNameByName(name);
    }

}
